using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;

namespace Spinning.Spinning.Unitity
{
    class Functional
    {
        public static Vector2 Vector2InWorld(Vector2 vInScene)
        {
            Vector2 pos = new Vector2(vInScene.X / Constants.MeterToPixal, (Constants.Window_Height - vInScene.Y) / Constants.MeterToPixal);
            return pos;
        }

        public static Vector2 Vector2InScene(Vector2 vInWorld)
        {
            Vector2 pos = new Vector2(vInWorld.X * Constants.MeterToPixal, Constants.Window_Height - (vInWorld.Y * Constants.MeterToPixal));
            return pos;
        }

        public static float ToRadian(float degree) {
            float r =(float)( degree * Math.PI / 180f);
            return r;
        }
    }
}
